// List and array
def l = [1, 2, 3]
Integer[] array = l

// List and Set
l = [1, 1, 2, 3]
def s = l as Set
println s

// Enhanced methods
println l.any { it > 2 }
println l.collect { it * 2 }
println l.every { it > 2 }
println l.findAll { it > 1 }

def list1 = [1, 2, 3]
def list2 = [2, 3, 4]
println list1 + list2
println list1 - list2